using System;
using System.Collections.Generic;
using System.Text;

namespace Common.Dispatcher
{
    /// <summary></summary>
    [Serializable]
    public class RunContext
    {
        private Guid _RunID;
        /// <summary></summary>
        public Guid RunID
        {
            get { return _RunID; }
            set { _RunID = value; }
        }

        private List<GlobalVariable> _Vars;
        /// <summary></summary>
        public List<GlobalVariable> Vars
        {
            get { return _Vars; }
            set { _Vars = value; }
        }

        private bool _IsSubflow;
        /// <summary></summary>
        public bool IsSubflow
        {
            get { return _IsSubflow; }
            set { _IsSubflow = value; }
        }

        /// <summary></summary>
        public RunContext(Guid runID, bool subflow)
        {
            this._RunID = runID;
            this._IsSubflow = subflow;
            this._Vars=new List<GlobalVariable>();
        }
        /// <summary></summary>
        public RunContext(Guid runID, bool isSubFlow, List<GlobalVariable> vars)
        {
            this._RunID = runID;
            this._IsSubflow = isSubFlow;
            this._Vars = vars;
        }
    }
}
